<div class="authorizations form">
<h2><?php echo __('Add Authorization'); ?></h2>
<div class="clear"></div>
<div class="actions selected">
<?php $project_id = $this->Form->value('Project.project_id'); if(!empty($project_id)) echo $this->Html->link(__('Cancel'), array('controller'=>'projects','action' => 'view',$project_id));?>
</div>
<div class="clear"></div>
<?php echo $this->Form->create('Authorization');?>
	<fieldset>

	<?php
		echo $this->Form->input('description');
		echo $this->Form->input('login');
		echo $this->Form->input('password',array('type'=>'text'));
		echo $this->Form->input('web_url');
		echo $this->Form->input('auth_type_id',array('empty'=>'','options'=>Configure::read('Config.auth_groups')));
		if(isset($this->request->data['Domain']['Domain']['domain_id'])) echo $this->Form->hidden('Domain');
		else echo $this->Form->input('Domain');
		if(isset($this->request->data['Project']['Project']['project_id'])) echo $this->Form->hidden('Project');
		else echo $this->Form->input('Project');
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit'));?>
</div>
<div class="actions">	
	<?php echo $this->element('/menu/main')?>	
	<?php echo $this->element('/menu/settings')?>	
</div>
